﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;

namespace Web
{
    public class MyList<T> : IEnumerable
    {
        private List<T> list;
        public int Count
        {
            get { return Items == null ? 0 : Items.Length; }
        }
        public T[] Items { get; set; }
        public T this[int index]
        {
            get { return Items[index]; }
        }
        public MyList()
        {
            list = new List<T>();
        }
        public void Add(T t)
        {
            list.Add(t);
        }
        public void Remove(T t)
        {
            list.Remove(t);
        }
        public void RemoveAt(int index)
        {
            list.RemoveAt(index);
        }
        public IEnumerator GetEnumerator()
        {
            return list.GetEnumerator();
        }
    }
}